package com.gopay.common.domain.oldmermove;

// Generated 2014-7-3 15:52:13 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 老平台迁移商户交易记录
 * @OldMovedMerTranLog.java
 * @author lizheng
 * @2014-7-3 下午4:27:20  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "OLD_MOVED_MER_TRAN_LOG")
public class OldMovedMerTranLog implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private Integer transSq;
    private String merId;
    private String tranCode;
    private String merOrderNo;
    private String oldTranData;
    private String newTranData;
    private String gateVersion;
    private String frontMerUrl;
    private String backgroundMerUrl;
    private String msgExt;
    private Date createdTs;

    public OldMovedMerTranLog() {
    }

    public OldMovedMerTranLog(Integer transSq, String merId, String tranCode) {
        this.transSq = transSq;
        this.merId = merId;
        this.tranCode = tranCode;
    }

	public OldMovedMerTranLog(Integer transSq, String merId, String tranCode, String merOrderNo, 
			String oldTranData, String newTranData, String gateVersion, String frontMerUrl, String backgroundMerUrl,
			String msgExt, Date createdTs) {
		this.transSq = transSq;
		this.merId = merId;
		this.tranCode = tranCode;
		this.merOrderNo = merOrderNo;
		this.oldTranData = oldTranData;
		this.newTranData = newTranData;
		this.gateVersion = gateVersion;
		this.frontMerUrl = frontMerUrl;
		this.backgroundMerUrl = backgroundMerUrl;
		this.msgExt = msgExt;
		this.createdTs = createdTs;
	}

    @Id
    @SequenceGenerator(name = "OldMovedMerTranLogSeq", sequenceName = "OLD_MOVED_MER_TRAN_DTL_SEQ")
    @GeneratedValue(generator = "OldMovedMerTranLogSeq", strategy = GenerationType.SEQUENCE)
    @Column(name = "TRANS_SQ", unique = true, nullable = false, length=10)
    public Integer getTransSq() {
        return this.transSq;
    }

    public void setTransSq(Integer transSq) {
        this.transSq = transSq;
    }

    @Column(name = "MER_ID", nullable = false, length = 10)
    public String getMerId() {
        return this.merId;
    }

    public void setMerId(String merId) {
        this.merId = merId;
    }

    @Column(name = "TRAN_CODE", nullable = false, length = 10)
    public String getTranCode() {
        return this.tranCode;
    }

    public void setTranCode(String tranCode) {
        this.tranCode = tranCode;
    }

    @Column(name = "MER_ORDER_NO", length = 30)
    public String getMerOrderNo() {
        return this.merOrderNo;
    }

    public void setMerOrderNo(String merOrderNo) {
        this.merOrderNo = merOrderNo;
    }

    @Lob
    @Column(name = "OLD_TRAN_DATA", columnDefinition="CLOB")
    public String getOldTranData() {
        return this.oldTranData;
    }

    public void setOldTranData(String oldTranData) {
        this.oldTranData = oldTranData;
    }

    @Column(name = "NEW_TRAN_DATA", columnDefinition="CLOB")
    public String getNewTranData() {
        return this.newTranData;
    }

    public void setNewTranData(String newTranData) {
        this.newTranData = newTranData;
    }

    @Column(name = "GATE_VERSION", length = 10)
    public String getGateVersion() {
        return this.gateVersion;
    }

    public void setGateVersion(String gateVersion) {
        this.gateVersion = gateVersion;
    }

    @Column(name = "FRONT_MER_URL", length = 400)
    public String getFrontMerUrl() {
        return this.frontMerUrl;
    }

    public void setFrontMerUrl(String frontMerUrl) {
        this.frontMerUrl = frontMerUrl;
    }

    @Column(name = "BACKGROUND_MER_URL", length = 400)
    public String getBackgroundMerUrl() {
        return this.backgroundMerUrl;
    }

    public void setBackgroundMerUrl(String backgroundMerUrl) {
        this.backgroundMerUrl = backgroundMerUrl;
    }

    @Column(name = "MSG_EXT", length = 200)
    public String getMsgExt() {
        return this.msgExt;
    }

    public void setMsgExt(String msgExt) {
        this.msgExt = msgExt;
    }

    @Column(name = "CREATED_TS")
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

}
